<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ZH-CN">
<head>
<title>查看论文提交重要时间</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" >  
<meta name="keywords" content="吉珠,吉林大学,吉林大学珠海学院,吉林大学珠海学院论文管理">
<meta name="content-type" content="text/html" charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="${pageContext.request.contextPath}/pages1/css/bootstrap.css" type="text/css">
<script src="${pageContext.request.contextPath}/pages1/js/jquery-2.1.1.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/pages1/js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/gray/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/icon.css" type="text/css"></link>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
<style>
.col-xs-3 {
	padding: 1px;
	height: 600px;
}
.col-xs-9 {
	height: 600px;
}
.container {
	width: 1280px;
}
.xs11 {
	margin-top: 20px;
	margin-left: 30px;
}
#right
{
position:absolute;
right:0px;
width:300px;
}
#xs12 {
	height: 494px;
	width: 313px;
}
#xs2{
	height: 800px;
	width: 900px;
	}
#xs1 {
	height: 100px;
	width: 80px;
}
body {
	font-size: 12px;
}
ul {
	margin: 0;
	padding: 7px;
}
ul li {
	height: 22px;
	vertical-align: bottom;
}
.actived {
	height: 25px;
	border-top: 3px solid #ff9900;
	;
	border-right: 1px solid #AAC7E9;
	border-left: 1px solid #AAC7E9;
	border-bottom: 1px solid #AAC7E9;
	background: #FFDAB9;
}
.panel-group {
	padding: 1px;
margin：1px;
}

</style>
<script type="text/javascript" language="javascript">
function g(o){return document.getElementById(o);}
function hoverli(n){
for(var i=1;i<=19;i++){
{g('tb_'+i).className='';}
g('tb_'+n).className='actived';}
}

var keyTime_table;
$(function() {
	keyTime_table = $('#keyTime_table')
	.datagrid({
				url : '/LWGL/xsxt/keyTime_table',
				pagination : true,
				pageSize : 5,
				pageList : [ 5, 10, 20 ],
				singleSelect : true,
				fitColumns : true,
				rownumbers : true,
				columns : [ [
						{
							title : '论文重要提交事件',
							field : 'event',
							width : 30,
							align : 'center',
							formatter : function(value, row, index) {
								if(row.keytime_type=="A")
								{
									var event ="论文选题";
									return event;
								}
								else if(row.keytime_type=="B")
								{
									var event="论文开题报告提交";
									return event;
								}
								else if(row.keytime_type=="C")
								{
									var event="论文中期检查";
									return event;
								}
								else if(row.keytime_type=="D")
								{
									var event="论文初稿提交";
									return event;
								}
								else if(row.keytime_type=="E")
								{
									var event="论文查重提交";
									return event;
								}
								else if(row.keytime_type=="F")
								{
									var event="论文第一次答辩";
									return event;
								}
								else(row.keytime_type=="G")
								{
									var event="论文第二次答辩";
									return event;
								}
							},
						},
						{
							title : '起始时间',
							field : 'keytime_begintime',
							width : 50,
							align : 'center',
						},
						{
							title : '完成时间',
							field : 'keytime_endtime',
							width : 50,
							align : 'center',
						},
						{
							title : '目前状态',
							field : 'teacher_name',
							width : 30,
							align : 'center',
							formatter : function(value, row, index) {
								var beginDate=row.keytime_begintime.substring(0,10);  
							 	var endDate=row.keytime_endtime.substring(0,10);  
							 	var now = new Date();

							 	var beginMonth = beginDate.substring(5,7);  
							    var beginDay = beginDate.substring(8);  
							    var beginYear = beginDate.substring(0,4);  
							  
							    var endMonth = endDate.substring(5,7);  
							    var endDay = endDate.substring(8);  
							    var endYear = endDate.substring(0,4);  
							    
							    beginDate=Date.parse(beginMonth+'/'+beginDay+'/'+beginYear);
							    endDate=Date.parse(endMonth+'/'+endDay+'/'+endYear);
							    nowDate=Date.parse(now.getMonth()+'/'+now.getDay()+'/'+now.getFullYear());
							    
								if(now >=beginDate && now<=endDate)  
								{  
									var state="进行中";
									return state;  
								}
								else if(now <=beginDate)
								{
									var state="未开始";
									return state;
								}
								else 
								{
									var state="已完成";
									return state;
								}
								},
						},] ],
				});
});


</script>
</head>

<body>
<!--全局框架 开始 conteiner-->
<div class="container"> 
  <!--标题头图片-->
  <div class="row">
    <div class="body_top"> <img src="${pageContext.request.contextPath}/pages1/img/head.png" align="center" width="1280px"/> </div>
  </div>
  <!--全局12栅格 规划全局区域图线 开始 row+ col-->
  <div class="row">
  <jsp:include page="stu_siderbar.jsp"></jsp:include>        
        <!--全局框架结束--> 

    <!--修改部分-->
    
    <div class="col-xs-9"style="border:2px solid #25465d">
          <div class="row">
            <div class="col-xs-5 xs11" style="margin-bottom:0px; margin-top:5px;"> <strong><font size="3">流程管理》查看论文重要时间</font></strong> </div>
            <div class="col-xs-5 xs11" id="right" style="margin-bottom:0px; margin-top:5px;">
<p><b><font size="3">毕业设计流转状态：&nbsp;&nbsp;&nbsp;开题阶段</font></b></p>
        </div>
          </div>         
           <div class="row">
            <div class="col-xs-11  xs11" style="margin-bottom:0px; margin-top:5px;">
              <div class="panel panel-default">
                 <div class="panel-heading" align="left"> <a data-toggle="collapse" data-parent="#accordion"  href="#collapseHelp" class="glyphicon glyphicon-chevron-down"> 操作指南 </a> </div>
                <div id="collapseHelp" class="panel-collapse collapse">
                  <div class="panel-body"> 论文题目由学生申报题目与教师提交题目合成作为学生论文的选取题目：
                    <ul>
              <li>学生以及指导老师必须严格按照指定的时间限制进行论文流程管理，如有延误，将整体影响到下一个阶段的论文管理工作，请指导老师和学生积极配合</li><br>
              <li>专业人员也需要在指定时间内完成相应的管理工作，审核相关专业论文题目等项目</li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
          

         
        <div class="col-xs-11 xs11 table-responsive"  style="margin-top:0px; margin-bottom:0px;">
        <form name="">
        <!--重要时间记录表格  -->
        
          <table id="keyTime_table" name="keyTime_table">
          </table>
          
        <!--表格结束  -->
          </form>
        </div>
      </div>
   </div>

  
<!--全局12栅格 规划全局区域图线 结束 row+ col-->
</div>
</div>
<div class="row" style="background-color:#25465d"">
  <p  align="center" style="color:white;background-color:#25465d"><strong>用户单位：</strong>吉林大学珠海学院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>版权所有：</strong>吉林大学珠海学院计算机科学与技术系</p>
</div>
<!--全局框架开始 conteiner-->
</div>
</body>
</html>
